MultiSafepay\WooCommerce\Settings\SettingsController A

Total Complexity 58
Dependencies 4
Dependents 1
Total lines 416
Lines of code 209
Logical lines of code 93
Comment lines 174
Methods 23
Properties 3

Methods 23

Method Rating Maintainability Complexity Lines of code
multisafepay_ajax_toggle_gateway_enabled()
A
53 9 22
before_ajax_toggle_gateway_enabled()
A
55 9 18
get_tab_active()
S
64 5 9
has_api_key()
S
61 4 13
is_gateway_enable()
S
61 3 12
needs_update()
S
62 3 11
register_common_settings()
S
62 3 11
filter_multisafepay_common_settings_fields()
S
63 3 10
filter_multisafepay_settings_as_booleans()
S
71 3 6
generate_label_for_settings_field()
S
69 2 6
display_intro_section()
S
67 2 7
enqueue_scripts()
S
60 1 13
add_settings_field()
S
63 1 12
register_common_settings_page()
S
63 1 11
register_setting()
S
63 1 11
set_wc_screen_options_in_common_settings_page()
S
77 1 4
add_settings_section()
S
68 1 8
display_multisafepay_support_section()
S
80 1 3
display_field()
S
73 1 5
display_multisafepay_settings()
S
70 1 6
enqueue_styles()
S
78 1 3
filter_multisafepay_settings_as_int()
S
81 1 3
__construct()
S
74 1 5